﻿#include "CmdLineChartWindowSetIsEdit.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartWindowSetIsEdit::CmdLineChartWindowSetIsEdit()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartWindowSetIsEdit::~CmdLineChartWindowSetIsEdit()
    {
    }

    bool CmdLineChartWindowSetIsEdit::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartWindowSetIsEdit(m_data);
        return true;
    }

    void CmdLineChartWindowSetIsEdit::undo()
    {
        // TODO: undo
    }

    void CmdLineChartWindowSetIsEdit::redo()
    {
        execute();
    }

} // namespace PostCommand
